package org.metasketch.diagram.javafx.graphics;

import org.metasketch.editor.links.LineEnd;
import org.metasketch.editor.links.LinkEndType;

import javafx.scene.shape.Circle;
import javafx.scene.shape.Rectangle;

public class CircleEndType extends LineEnd {

	Circle rect = new Circle(6);

	public CircleEndType(LinkEndType endType) {

		if (endType == LinkEndType.CIRCLE) {
			rect.setStyle("-fx-stroke: black;  -fx-stroke-width: 2; -fx-fill: white; ");
		} else if (endType == LinkEndType.FILLEDCIRCLE)
			rect.setStyle("-fx-stroke: black;  -fx-stroke-width: 2; -fx-fill: black; ");

		getChildren().add(rect);
		rect.setTranslateX(5);
//		rect.setTranslateY(3);

	}

//	@Override
//	public void setNewPosition(int x, int y, int sectionX, int sectionY) {
//		setTranslateX(x);
//		setTranslateY(y);
//
//	}

}
